package com.gxa.admin.pojo.dto;

import com.gxa.admin.pojo.Emp;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author IKE <hp1041735092@outlook.jp>
 * @date 22/3/2024
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class EmpAddDto {
    private String employeeAccount;
    private String employeePwd;
    private String employeeName;
    private String employeeTel;

    public Emp toEmp(){
        return Emp.builder()
                .employeeAccount(employeeAccount)
                .employeeName(employeeName)
                .employeeTel(employeeTel)
                .build();
    }
}
